package server;

import com.hk.commons.entity.Organization;
import com.hk.commons.entity.sys.UserChangeInfo;
import com.hk.service.impl.OrganizationImpl_New;
import com.hk.service.sys.impl.UserChangeImpl;
import com.hk.test.TestStartup;

import java.io.IOException;
import java.util.List;


/**
 * Unit test for simple App.
 */
public class OrgTest02
{

   public static void main(String[] args) throws Exception, IOException
   {
      TestStartup.init();
      courseMainService();
   }

   public static void courseMainService() throws Exception
   {
       OrganizationImpl_New ivs = (OrganizationImpl_New) TestStartup.getBean("organizationImpl_New");

       List<Organization> orgList = ivs.getSubOrgList(5);
       for(Organization org:orgList){
           System.out.println(org.toString());
       }
   }
}
